package pong.view;

import gameFramework.model.entites.Entity;
import gameFramework.view.*;
import java.awt.*;

/**
 * @author Matthieu Paniez
 *
 */
public class GPBall extends GEntity
{

	/**
	 * Representation graphique de la balle
	 */
	public GPBall(Entity model)
	{
		super(model);
	}
	
	/**
	 * @see gameFramework.view.GEntity#draw(java.awt.Graphics2D)
	 */
	@Override
	public void draw(Graphics2D g2d) 
	{
		g2d.setColor(Color.WHITE);
		g2d.fillOval(this.model.getPosition().x, this.model.getPosition().y,this.model.getSize().width, this.model.getSize().height);
	}
	


}
